package org.jeecg.modules.basic.print.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 打印配置
 * @Author: jeecg-boot
 * @Date:   2023-09-13
 * @Version: V1.0
 */
@ApiModel(value="print_config对象", description="打印配置")
@Data
@TableName("print_config")
public class PrintConfig implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**业务单据*/
	@Excel(name = "业务单据", width = 15, dicCode = "business_type")
    @Dict(dicCode = "business_type")
    @ApiModelProperty(value = "业务单据")
    private String businessType;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15)
    @ApiModelProperty(value = "单据类型")
    private String documentType;

    @TableField(exist = false)
    private String documentTypeValue;
	/**模板地址*/
	@Excel(name = "模板地址", width = 15)
    @ApiModelProperty(value = "模板地址")
    private String templateUrl;
    /**标签打印地址*/
    @Excel(name = "标签打印地址", width = 15)
    @ApiModelProperty(value = "标签打印地址")
    private String labelUrl;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private String delFlag;
	/**组织*/
	@Excel(name = "组织", width = 15)
    @ApiModelProperty(value = "组织")
    private String organization;
	/**选择状态*/
	@Excel(name = "选择状态", width = 15)
    @ApiModelProperty(value = "选择状态")
    private String status;

    /**
     * 物料分类集合
     */
    @ApiModelProperty(value = "物料分类集合")
    private String materialTypeIds;

    @ApiModelProperty(value = "需要拣货")
    private Integer needPick;

    @ApiModelProperty(value = "自动出入库")
    private Integer receiptCanAutoExecute;

    @ApiModelProperty(value = "任务可分批出入库")
    private Integer taskCanExecuteBatches;

    @ApiModelProperty(value = "出入库物料可不存在于任务中")
    private Integer materialCanOtherWay;

    @ApiModelProperty(value = "需要装车复核")
    private Integer needLoadCheck;
}
